//
//  BaiduMapManager.h
//  BaiduMapDemo
//
//  Created by 赵博 on 2019/6/3.
//  Copyright © 2019 赵博. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <BMKLocationKit/BMKLocationComponent.h>
NS_ASSUME_NONNULL_BEGIN
//持续定位
typedef void(^ContinualLocation)(BMKLocation *response,NSError * err);

@interface BaiduMapManager : NSObject

//单例
+ (instancetype)shareManager;
//验证注册appKey
- (BOOL)validationAppKey:(NSString *)appKey;
//配置定位 是否允许后台定位
- (void)configLocationManagerAndAllowsBackgroundLocation:(BOOL)allowsBackgroundLocation;
//单次定位
- (void)singleLocation:(void (^)(BMKLocation *response))completionBlock failureBlock:(void (^)( NSError * err))failureBlock;

@property (nonatomic, copy) ContinualLocation continualblock;

//版本号
- (void)version;

@end

NS_ASSUME_NONNULL_END
